package errcode

var (
	Success       = NewError(0, "成功")
	ServerError   = NewError(1000, "服务内部错误")
	InvalidParams = NewError(1001, "session 过期")
	ApiTokenError = NewError(1002, "api_token error")

	UnauthorizedAuthNotExist  = NewError(1003, "用户名或密码错误")
	UnauthorizedTokenError    = NewError(1004, "Token 错误")
	UnauthorizedTokenTimeout  = NewError(1005, "登录超时退出")
	UnauthorizedTokenGenerate = NewError(1006, "Token 生成失败")
	TooManyRequests           = NewError(1007, "请求过多")
	NoAuthoriry               = NewError(1008, "无权限。")

	UserNameNotEmpty = NewError(1009, "用户名不能为空")
)
